#include <unistd.h>

#include "xoutput.h"
#include "payload.h"

#ifndef CLICONFIG
#define FEATURE_DEFAULT_NOTIF 1
#endif

#define USLEEP_INT 500000 /* 100k = 0.1 second */
#define NOTIF_FILE_PATH "/tmp/wmstatusnotif"

// static int FEATURE_NOTIF = FEATURE_DEFAULT_NOTIF;

int
main ( void )
{
	xo_display_attach();

	struct pl_data_t * data = pl_data_init();

	for ( data->i = 0, data->timer = 0 ;; data->status[0] = '\0', ++data->i )
	{
		pl_data_fill( data );
		xo_set_status( data->status );
		usleep( USLEEP_INT );
	}

	pl_data_free(data);
	xo_display_detach();

	return 0;
}
